import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login';
import Home from '../components/Home';
import UserList from '../components/emp/UserList';
import lingshi from '../components/emp/lingshi';
import user from '../components/user/user';
import zhiyuan from '../components/emp/zhiyuan';
import yonghu from '../components/emp/yonghu';
import nomalAssets from '../components/system/nomalAssets';
import fianceAssets from '../components/system/fianceAssets';
import carAssets from '../components/system/carAssets';
import permanentAssets from '../components/system/permanentAssets';
import nomalFlow from '../components/flow/nomalFlow';
import fianceFlow from '../components/flow/fianceFlow';
import carFlow from '../components/flow/carFlow';
import permanentAsset from '../components/flow/permanentAsset';


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      hidden: true
    },
    {
      path: '/home',
      name: '主页',
      component: Home,
      hidden: true,
      meta: {
        requireAuth: true,
        keepAlive: false
      },
      children: [
        {
          path: '/emp/UserList',
          name: '数据字典管理',
          component:UserList,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          },
        },
        {

          path: '/emp/lingshi',
          name: '资产分类管理',
          component: lingshi,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/emp/yonghu',
          name: '系统用户管理',
          component: yonghu,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/emp/zhiyuan',
          name: '公司职员管理',
          component: zhiyuan,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/system/nomalAssets',
          name: '普通资产信息',
          component: nomalAssets,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/system/fianceAssets',
          name: '金融资产信息',
          component: fianceAssets,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/system/carAssets',
          name: '车辆资产信息',
          component: carAssets,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/system/permanentAssets',
          name: '不动产信息',
          component: permanentAssets,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/flow/nomalFlow',
          name: '普通资产流转',
          component: nomalFlow,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/flow/fianceFlow',
          name: '金融资产流转',
          component: fianceFlow,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/flow/carFlow',
          name: '车辆资产流转',
          component: carFlow,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
        {

          path: '/flow/permanentAsset',
          name: '不动产资产',
          component: permanentAsset,
          hidden: true,
          meta: {
            requireAuth: true,
            keepAlive: false
          }
        },
    
      ]
    }
  ]
})
